﻿// Copyright @ shch8.com All Rights Reserved At 2008-3-12
//开发：商创技术（www.shch8.com）望月狼
/*
·颜色更改事件。
 用于背景与字体颜色更改时触发事件
 
参数：new colorEvent(colorEvent.RENEW,0xffcc00,0x000000)
      new colorEvent(colorEvent.RENEW,背景颜色,文本颜色)

例：			this.addEventListener(colorEvent.RENEW,colEvent_fun);
			function colEvent_fun(e:colorEvent):void {
				trace(e.bgcol);
				trace(e.txtcol);
			}
			dispatchEvent(new colorEvent(colorEvent.RENEW,0xffcc00,0x000000));//加入事件流
*/
package com._public._events{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.events.MouseEvent;
	public class colorEvent extends Event {
		public static  const RENEW:String = "renew";
		private var _bgcol:uint;
		private var _txtcol:uint;
		public function colorEvent(eventFun:String,bgcol:uint,txtcol:uint) {
			super(eventFun);
			_bgcol=bgcol;
			_txtcol=txtcol;
		}
		public function get bgcol():uint {
			return _bgcol;
		}
		public function get txtcol():uint {
			return _txtcol;
		}
	}
}